<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>json testing</title>
</head>
<body>
<h3>Information of wangxiaowen</h3>
<p>
    name:<span id="name"></span>
    age:<span id="age"></span>
    sex:<span id="sex"></span>
    marriage:<span id="marriage"></span>
    children:<span id="children"></span>
</p>
<script>
    var wangxiaowen={
        "name":"wangxiaowen",
        "age":21,
        "sex":"female",
         "marriage":"no",
        "children":[
            {"name":"a","sex":"male"},
            {"name":"b","sex":"female"},
            {"name":"c","sex":"female"}
        ]
    }
    doc
    alert(wangxiaowen.children[0].name);
</script>
</body>
</html>